package com.core.java;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class SimpleCalculator {

	public static void main(String[] args) {
		
		String s1 = getInput("Enter a value: ");
		System.out.println(s1);
	}
	private static String getInput(String prompt){
		BufferedReader input = new BufferedReader
				(new InputStreamReader(System.in));
		
		System.out.println(prompt);
		System.out.flush();
		
		try {
			return input.readLine();
		} catch (IOException e) {
			return "Error:  " + e.getMessage();
		}
		
	}

}
